#include "board.h"
#include "matrix.h"
#include "bflb_mtimer.h"
#include "bflb_gpio.h"
#include "log.h"

uint16_t key_val = 0;
char key_char;
void setup() {
  // put your setup code here, to run once:
  board_init();
  matrix_keys_init();
}

void loop() {
  // put your main code here, to run repeatedly:
  key_val = get_key_val();
  key_char = val2char(key_val);
  LOG_I("%x: \t %c\r\n", key_val, key_char);
  bflb_mtimer_delay_ms(10);
}
